package com.solace.selenium.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("video_group")
@Entity
public class VideoGroup implements Serializable {

    @TableId(value = "id", type = IdType.UUID)
    @Id
    private String id;
    private Integer sort;
    @NotNull(message = "分组名字不能为空")
    private String name;
    private String note;
}